spam=['cat','bat','rat','elephant']

print(spam[0])
print(spam[-1])
print(spam[1:3])
print(spam[1:])
print(spam[:2])

print([1,2,3]+['a','b','c'])
print(['X','Y','Z']*3)

for i in spam:
    print(i)

print('cat' in spam)
print('dog' not in spam)

print(spam.index('cat'))

spam.append('moose')
spam.insert(1,'chicken')

print(spam)

spam.sort()
print(spam)
    
spam=[['cat','bat'],[10,20,30,40,50]]
print(spam[0])
print(spam[1][4])
